export interface menuOption {
  code: string;
  name: string;
  key: string;
  url: string;
  icon?: string;
  children?: menuOption[];
}

export const menus: menuOption[] = [
  {
    code: "menu00",
    name: "Dashbord",
    key: "dashbord",
    url: "",
    icon: "",
    children: [
      {
        code: "menu0001",
        name: "监控页",
        key: "index",
        url: "/",
        icon: "",
      },
    ],
  },
  {
    code: "menu01",
    name: "客户中心",
    key: "customerManagement",
    url: "",
    icon: "",
    children: [
      {
        code: "menu0101",
        name: "客户认证",
        key: "customerCertification",
        url: "/customerManagement/customerCertification",
        icon: "",
      },
      {
        code: "menu0102",
        name: "经销商列表",
        key: "distributorList",
        url: "/customerManagement/distributorList",
        icon: "",
      },
      {
        code: "menu0103",
        name: "终端列表",
        key: "terminalList",
        url: "/customerManagement/terminalList",
        icon: "",
      },
    ],
  },
  {
    code: "menu02",
    name: "商品中心",
    key: "commodityCenter",
    url: "",
    icon: "",
    children: [
      {
        code: "menu0201",
        name: "组合商品列表",
        key: "combinationList",
        url: "/commodityCenter/combinationList",
        icon: "",
      },
      {
        code: "menu0202",
        name: "商品列表",
        key: "commodityList",
        url: "/commodityCenter/commodityList",
        icon: "",
      },
      {
        code: "menu0203",
        name: "商品类别管理",
        key: "commodityManagement",
        url: "/commodityCenter/commodityManagement",
        icon: "",
      },
      {
        code: "menu0204",
        name: "库存列表",
        key: "stockList",
        url: "/commodityCenter/stockList",
        icon: "",
      },
    ],
  },
  {
    code: "menu03",
    name: "订单管理",
    key: "orderManagement",
    url: "",
    icon: "",
    children: [
      {
        code: "menu0301",
        name: "经销商订单列表",
        key: "distriminaOrderList",
        url: "/orderManagement/distriminaOrderList",
        icon: "",
      },
      {
        code: "menu0302",
        name: "终端订单列表",
        key: "terminalOrderList",
        url: "/orderManagement/terminalOrderList",
        icon: "",
      },
    ],
  },
  {
    code: "menu04",
    name: "价格管理",
    key: "priceManagement",
    url: "",
    icon: "",
    children: [
      {
        code: "menu0401",
        name: "客户价格管理",
        key: "customerPrice",
        url: "/priceManagement/customerPrice",
        icon: "",
      },
      {
        code: "menu0402",
        name: "基础价格管理",
        key: "originPrice",
        url: "/priceManagement/originPrice",
        icon: "",
      },
      {
        code: "menu0403",
        name: "限量政策",
        key: "salePolicy",
        url: "/priceManagement/salePolicy",
        icon: "",
      },
    ],
  },
  {
    code: "menu05",
    name: "库存管理",
    key: "InventoryManagement",
    url: "",
    icon: "",
    children: [
      {
        code: "menu0501",
        name: "出入库管理",
        key: "accessManagement",
        url: "/InventoryManagement/accessManagement",
        icon: "",
      },
      {
        code: "menu0502",
        name: "仓库管路",
        key: "warehouseManagement",
        url: "/InventoryManagement/warehouseManagement",
        icon: "",
      },
    ],
  },
  {
    code: "menu06",
    name: "权限管理",
    key: "rbacManagement",
    url: "",
    icon: "",
    children: [
      {
        code: "menu0601",
        name: "用户管理",
        key: "accountManagement",
        url: "/rbacManagement/accountManagement",
        icon: "",
      },
      {
        code: "menu0602",
        name: "角色管理",
        key: "roleManagement",
        url: "/rbacManagement/roleManagement",
        icon: "",
      },
      {
        code: "menu0603",
        name: "业务员列表",
        key: "salesmanList",
        url: "/rbacManagement/salesmanList",
        icon: "",
      },
    ],
  },
];
